<template>
	<view class="homecon">
		<!-- 轮播 -->
		<swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval"
			:duration="duration">
			<swiper-item>
				<view class="water_diversion">
					<view class="titcon">
						<view class="txt">
							南水北调供水
						</view>
					</view>
					<view class="conbox">
						<view class="boxcco">
							<view class="">
								计划流量 <text class="ttext">356</text> m³/s
							</view>
						</view>
					</view>
					<view class="conbox">
						<view class="boxcco">
							<view class="">
								实测流量 <text class="ttext">326</text> m³/s
							</view>
						</view>
					</view>
					<view class="conbox">
						<view class="boxcco">
							<view class="">
								引水总量 <text class="ttext">46.3</text> 万/m³
							</view>
						</view>
					</view>
				</view>
			</swiper-item>
			<swiper-item>
				<view class="water_diversion">
					<view class="titcon">
						<view class="txt">
							总干渠首引水
						</view>
					</view>
					<view class="conbox">
						<view class="boxcco_aa">
							<view class="">
								计划流量 <text class="ftext">635</text> m³/s
							</view>
						</view>
					</view>
					<view class="conbox">
						<view class="boxcco_aa">
							<view class="">
								实测流量 <text class="ftext">619</text> m³/s
							</view>
							<view class="">
								水深 <text class="ftext">1.7</text> 米
							</view>
						</view>
						<view class="" style="color: #6a6a6a;font-size: 35rpx;">
							2025-01-02 12:13:33
						</view>
					</view>
					<view class="conbox">
						<view class="boxcco_aa">
							<view class="">
								监测流量 <text class="ftext">1.23</text> m³/s
							</view>
							<view class="">
								水深 <text class="ftext">1.5</text> 米
							</view>
						</view>
						<view class="" style="color: #6a6a6a;font-size: 35rpx;">
							2025-01-02 12:13:33
						</view>
					</view>
				</view>
			</swiper-item>
		</swiper>
		<!-- 图表 -->
		<view class="my_uch">
			<view class="my_tit">
				<view class="my_tit_y">

				</view>
				<view class="my_tit_z">
					计划流量
				</view>
			</view>
			<plannedflow ref="myJHLL"></plannedflow>
			<view class="my_tit">
				<view class="my_tit_y" style="background-color: #b1d145;">

				</view>
				<view class="my_tit_z">
					实报水位
				</view>
			</view>
			<waterlevel ref="mySSSW"></waterlevel>
		</view>
	</view>
</template>

<script>
	import plannedflow from '@/pages/waterMonitoring/flowRateUCh.vue';
	import waterlevel from '@/pages/waterMonitoring/waterLevelUCh.vue';
	export default {
		components: {
			plannedflow,
			waterlevel
		},
		data() {
			return {
				autoplay: true,
				background: ['color1', 'color2', 'color3'],
				indicatorDots: true,
				autoplay: true,
				interval: 3000,
				duration: 500
			}
		},
		onLoad(option) {

		},
		onShow() {
			setTimeout(() => {
				this.$refs.myJHLL.onloshow()
				this.$refs.mySSSW.onloshow()
			}, 500)
		},
		methods: {
			// 轮播
		}
	}
</script>
<style scoped lang="scss">
	.homecon {
		.swiper {
			height: 500rpx;
		}

		.water_diversion {
			margin: 20rpx;
			padding: 20rpx;
			border-radius: 20rpx;
			// box-shadow: 0rpx 0rpx 10rpx 10rpx rgba(124, 124, 124, 0.2);
			// border: #fff solid 1px;
			background-color: #ffffff;

			.titcon {
				display: flex;
				justify-content: center;
				align-items: center;
				color: #343d58;
				font-weight: bold;
				font-size: 40rpx;
			}

			.conbox {
				text-align: center;
				color: #475261;
				border-bottom: 1rpx solid #c6c6c6;

				.ttext {
					font-size: 50rpx;
					color: #e39c0d;
					padding: 0 10rpx;
				}
				.ftext {
					font-size: 50rpx;
					color: #00aa7f;
					padding: 0 10rpx;
				}

				.boxcco {
					display: flex;
					justify-content: end;
					align-items: center;
					line-height: 103rpx;
					font-size: 35rpx;
				}

				.boxcco_aa {
					display: flex;
					align-items: center;
					justify-content: space-between;
					font-size: 35rpx;
				}
			}
		}

		.my_uch {
			margin: 20rpx;
			width: 710rpx;
			border-radius: 20rpx;
			background-color: #ffffff;

			.my_tit {
				display: flex;
				align-items: center;
				justify-content: end;

				.my_tit_y {
					width: 15rpx;
					height: 40rpx;
					background-color: #05e3dc;
					border-radius: 20rpx;
					margin: 0 15rpx;
				}

				.my_tit_z {
					font-size: 40rpx;
					font-weight: bold;
				}
			}
		}
	}
</style>

<style>
	page {
		background-color: #f2f1f6;
	}
</style>